<%-- 
    Document   : resultado
    Created on : 10/06/2009, 17:20:34
    Author     : Leonardo
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <link rel="stylesheet" href="css/style.css" type="text/css" charset="utf-8" />
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Turismo RBC @ Barnabé Solutions :: Países ::</title>
    </head>
    <body>
        <table align="center" cellpadding="0" cellspacing="0">
            <tr>
                <td id="logoResultado">
                </td>
                <td valign="top">
                    <table cellpadding="0" cellspacing="0">
                        <tr>
                            <td id="nav" style="width:525px; background-image:url('imagem/header.jpg');">
                                <ul>
                                    <li class="selected" >
                                        <a href="">Home</a>
                                    </li>
                                    <li>
                                        <a href="">Login</a>
                                    </li>
                                    <li>
                                        <a href="">Paises</a>
                                    </li>
                                    <li class="last">
                                </ul>
                            </td>
                        </tr>
                        <tr>
                            <td valign="top" style="height:500px;">
                                <div id="body">
                                    <div id="body-top">
                                        <div id="body-bot">
                                            <img src="imagem/resultados_logo.png" width="127" height="25" alt="login_logo" align="left"/>
                                            &nbsp;<br>
                                            &nbsp;<br>
                                            &nbsp;<br>
                                            <table>
                                                <tr class="titulo">
                                                    <td width="340px">
                                                        &nbsp;Pais
                                                    </td>
                                                    <td width="340px">
                                                        &nbsp;Porcentagem
                                                    </td>
                                                </tr>
                                                <c:forEach var="resultado" items="${listaResultado}">
                                                    <form name="categoriaCategoria" action="ServletMain" method="POST">
                                                        <tr class="corpo">
                                                            <td width="340px">
                                                                <c:out value="${resultado[1]}" />
                                                            </td>
                                                            <td width="160px">
                                                                <c:out value="${resultado[2]}" />%
                                                            </td>
                                                            <td>
                                                                <input type="submit" value="Dar Uma Bizolhada!" name="btVerPais" class="botaoResultado" />
                                                            </td>
                                                        </tr>                                                        
                                                        <input type="hidden" name="idPais" value="${resultado[0]}" />
                                                        <input type="hidden" name="action" value="verPais" />
                                                    </form>
                                                </c:forEach>                                                
                                                <tr>
                                                    <td colspan="2" align="left" class="error">
                                                        <c:choose>
                                                            <c:when test="${exception != ''}">
                                                                <c:out value="${exception}"></c:out>
                                                            </c:when>
                                                        </c:choose>
                                                    </td>
                                                </tr>
                                            </table>
                                            <div id="divSair" align="right">
                                                <form name="categoriaCategoria" action="ServletMain" method="POST">
                                                     <input type="submit" value="Pular fora!!" name="btEncerrar" class="botaoResultado" />
                                                     <input type="hidden" name="action" value="encerrar" />
                                                </form>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </body>
</html>
